package com.guxingke.nioserver.event;

import com.guxingke.nioserver.exception.ServerException;
import com.guxingke.nioserver.core.HttpRequest;
import com.guxingke.nioserver.core.HttpResponse;

public abstract class EventAdapter implements ServerListener {
    public EventAdapter() {
    }

    public void onError(ServerException serverException) {
    }

    public void onAccept() throws Exception {
    }

    public void onAccepted(HttpRequest request) throws Exception {
    }

    public void onRead(HttpRequest request) throws Exception {
    }

    public void onWrite(HttpRequest request, HttpResponse response)
            throws Exception {
    }

    public void onClosed(HttpRequest request) throws Exception {
    }
}
